<?php
define( 'PS' , 'adminisnotadmin' );
function v( $str )
{
	return isset( $_REQUEST[$str] ) ? $_REQUEST[$str] : false;
}


function check_login()
{
	if( !isset($GLOBALS['sess']) )
	{
		session_start();
		$GLOBALS['sess'] = true;
	}
		
	if( !isset( $_SESSION['ps'] ) || ( $_SESSION['ps'] != PS ) )
	{
		header('Location: login.php');
		exit;
	}	
}
?>